<include file="Public:header" />
<div style="boder:1px solid #ccc;margin:10px 10px 0px 10px;">
    <div style="border:1px solid #ccc;height:40px;padding:0 0 0 20px;line-height:40px;">
           数据恢复
    </div>
    <form action="{:U('WebsiteDatabaseBackupAndRecover/executeRecover')}" method="post">
        <div style="border:1px solid #ccc;height:auto;padding:5px 10px 5px 10px;margin-top:5px;"> 
        <table width="100%">
           <tr>
               <input type="submit" name="allRecover" value="恢复全部备份" />
           </tr> 
           <tr>
                <th width="50">序号</th>
                <th>表名</td>
                <th width="80">是否已备份</th>
                <th width="100">文件大小</td>
                <th width="140">创建时间</th>
                <th width="140">修改时间</th>
                <th width="80">访问时间</th>
                <th width="30">操作</th>
           </tr>
           <foreach name="tableInfo" item="val" key="k">
           <tr>
               <td><input type="checkbox" name="tableName[]" value="{$val.tableName}" />&nbsp;{$k}</td>
               <td>{$val.tableName}</td>
               <td align='center'>
                   <if condition="$val.status eq '1'">
                   <b style="color:green;font-size:20px">√</b>
                   <else/>
                   <b style="color:red;font-size:20px">×</b>
                   </if>
               </td>
               <td>{$val.filesize}</td>
               <td>{$val.ctime}</td>
               <td>{$val.mtime}</td>
               <td>{$val.atime}</td>
               <td><a href="{:U('WebsiteDatabaseBackupAndRecover/executeRecover/tableName/'.$val['tableName'])}">恢复</a></td>
           </tr>
           </foreach>
    </table>
    </div>
    <div style="border:1px solid #ccc;margin:5px 0px 5px 0px;padding:5px 0px 5px 10px;">
          <input type="submit" name="recover" value="恢复" />
          <input type="reset" value="重置" />
    </div>
    </form>
</div>
  </body>
</html>

